<!DOCTYPE HTML>
<html>
<head>
	<title>happy valentine's day to xiaohu</title>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
	<style type="text/css">
		@font-face {
			font-family: digit;
			src: url('digital.ttf') format("truetype");
		}
	</style>
	<link href="css/default.css" type="text/css" rel="stylesheet">
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/garden.js"></script>
	<script type="text/javascript" src="js/functions.js"></script>
</head>

<body>
<div id="mainDiv">
    <audio loop="loop"  autoplay><source src="mp3/3.mp3" /></audio>
	<div id="content">
		<div id="code">
			<span class="comments">吾爱，</span><br/>
			<span class="comments">情人节至，</span><br/>
			<span class="comments">玫瑰赠佳人，</span><br/>
			<span class="comments">然千朵万朵，</span><br/>
			<span class="comments">皆不如心中唯一之倩影。</span><br/>
			<span class="comments">吾欲以诗书传情，</span><br/>
			<span class="comments">托付鸿雁， </span><br/>
			<span class="comments">寓吾心于尺素之间， </span><br/>
			<span class="comments">愿其飞越关山，</span><br/>
            <span class="comments">达于君手， </span><br/>
			<span class="comments">知吾心之所向。</span><br/>
			<span class="comments">余诚愿以深情守护， </span><br/>
			<span class="comments">陪伴左右，</span><br/>
			<span class="comments">朝朝暮暮，</span><br/>
			<span class="comments">岁岁年年，</span><br/>
			<span class="comments">无论风雨晴晦，</span><br/>
			<span class="comments">皆以深情相待，</span><br/>
			<span class="comments">矢志不渝。 </span><br/>
			<span class="comments">愿结同心，</span><br/>
		    <span class="comments">不负韶华 </span><br/>
			<span class="comments">使岁月静好，</span><br/>
			<span class="comments">爱情长存， </span><br/>
			<span class="comments">此生足矣。</span><br/>
			<span class="comments">谨以此信， </span><br/>
			<span class="comments">抒吾情怀，</span><br/>
           <span class="comments">祝吾所爱之人情人节快乐，</span><br/>
          <span class="comments">愿真情如金石，</span><br/>
          <span class="comments">永世不渝。</span><br/>
          <span class="comments">-----挚爱汝者，小于</span><br/>
			
		</div>
		<div id="loveHeart">
			<canvas id="garden"></canvas>
			<div id="words">
				<div id="messages">
					Xiaohu, I have fallen in love with you for
					<div id="elapseClock"></div>
				</div>
				<div id="loveu">
					Love you forever and ever.<br/>
					<div class="signature">Xiao Hu | Xiao Yu </div>
				</div>
			</div>
		</div>
	</div>
	
</div>
<script type="text/javascript">
	var offsetX = $("#loveHeart").width() / 2;
	var offsetY = $("#loveHeart").height() / 2 - 55;
	var together = new Date();
	// 此处月份介于 0 ~ 11 之间。用本地时间表示，如 8 月要用 7 表示。
	together.setFullYear(2023, 1, 23);
	together.setHours(21);
	together.setMinutes(08);
	together.setSeconds(0);
	together.setMilliseconds(0);

	if (!document.createElement('canvas').getContext) {
		var msg = document.createElement("div");
		msg.id = "errorMsg";
		msg.innerHTML = "Your browser doesn't support HTML5!<br/>Recommend use Chrome 14+/IE 9+/Firefox 7+/Safari 4+";
		document.body.appendChild(msg);
		$("#code").css("display", "none")
		$("#copyright").css("position", "absolute");
		$("#copyright").css("bottom", "10px");
		document.execCommand("stop");
	} else {
		setTimeout(function () {
			startHeartAnimation();
		}, 5000);

		timeElapse(together);
		setInterval(function () {
			timeElapse(together);
		}, 500);

		adjustCodePosition();
		$("#code").typewriter();
	}
</script>
</body>
</html>
